package server.business.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 患者退血审批驳回记录表
 *
 * @Author 赵越
 * @TableName patient_back_review
 * @Time 2022-11-08
 */
@TableName(value = "patient_back_review")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PatientBackReview {

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 输血单号
     */
    @TableField(value = "transfusion_number")
    private String transfusionNumber;

    /**
     * 申请人工号
     */
    @TableField(value = "applicant_id")
    private String applicantId;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "review_time")
    private Date reviewTime;

    /**
     * 审核人工号
     */
    @TableField(value = "reviewer_id")
    private String reviewerId;

    /**
     * 驳回原因
     */
    @TableField(value = "reject_reason")
    private String rejectReason;

    /**
     * 状态（等待审核、通过、驳回、驳回已处理）
     */
    @TableField(value = "state")
    private String state;

}
